 <!doctype html>
 <html lang="zh-CN">
 <head>
   <meta charset="UTF-8">
   <link rel="stylesheet" href="__PUBLIC__/Css/Admin/common.css">
   <link rel="stylesheet" href="__PUBLIC__/Css/Admin/main.css">
   <script type="text/javascript" src="__PUBLIC__/Js/Admin/jquery.min.js"></script>
   <script type="text/javascript" src="__PUBLIC__/Js/Admin/colResizable-1.3.min.js"></script>
   <script type="text/javascript" src="__PUBLIC__/Js/Admin/common.js"></script>
   
   <script type="text/javascript">
      $(function(){  
        $(".list_table").colResizable({
          liveDrag:true,
          gripInnerHtml:"<div class='grip'></div>", 
          draggingClass:"dragging", 
          minWidth:30
        }); 
        
        // 删除
        deleteById("__URL__/../Order/deleteOrder");
      });
      
      
   </script>
   <title>订单管理</title>
 </head>
 <body>
  <div class="container">
     <div id="search_bar" class="mt10">
       <div class="box">
          <div class="box_border">
            <div class="box_top"><b class="pl5">搜索</b></div>
            <form class="box_center pt10 pb10" action="{:U('Order/orderList')}" method="post">
              <table class="form_table" style="width:100%;">
                <tr>
                  <td style="width:60px;">订单号</td>
                  <td style="width:15%;">
                  	<input type="text" name="orderNum" class="input-text lh25" style="width:90%;" value="{$orderNum}">
                  </td>
                  <td style="width:60px;">支付状态</td>
                  <td style="width:10%;">
                    <div class="select_border"> 
                        <div class="select_containers "> 
                        <select name="payStatus" class="select"> 
                        	<option value="0">请选择</option>
                        	<if condition="$payStatus eq 1">
                        		<option value="1" selected>待付款</option>
                       			<option value="2" >已付款</option>
                       			<option value="3">已完成</option>
                       			<option value="4">已失效</option>
                       		<elseif  condition="$payStatus eq 2"/>
                       			<option value="1" >待付款</option>
                       			<option value="2" selected>已付款</option>
                       			<option value="3">已完成</option>
                       			<option value="4">已失效</option>
                     		<elseif  condition="$payStatus eq 3"/>
                       			<option value="1" >待付款</option>
                       			<option value="2">已付款</option>
                       			<option value="3" selected>已完成</option>
                       			<option value="4">已失效</option>
                       		<elseif  condition="$payStatus eq 4"/>
                       			<option value="1">待付款</option>
                       			<option value="2">已付款</option>
                       			<option value="3">已完成</option>
                       			<option value="4" selected>已失效</option>
                     		<else />
                     			<option value="1">待付款</option>
                       			<option value="2">未出行</option>
                       			<option value="3">已完成</option>
                       			<option value="4">已失效</option>
                       		</if>
                        </select> 
                        </div> 
                      </div>
                  </td>
                  <td>
                  	<input type="submit" name="button" class="btn btn82 btn_search" value="查询"> 
                  </td>
                </tr>
              </table>
            </form>
          </div>
        </div>
    </div>
    <div class="box_bottom pb5 pt5 pr10" style="border:1px solid #dadada;border-bottom:0;margin-top:10px;">
              <div class="search_bar_btn" style="margin-left:2px;">
                 <form method="post" id="operationForm">
                 	 <input type="hidden" id="del_id" name="idList"> 
	                 <input type="button" id="btn_checkAll" class="btn btn82 btn_checked" value="全选"> 
       				 <input type="button" id="btn_unCheckAll" class="btn btn82 btn_nochecked" value="取消">
	       			 <input type="button" id="btn_del" class="btn btn82 btn_del" value="删除">
                 </form>
              </div>
            </div>
     <div id="table" class="mt10">
        <div class="box span10 oh">
              <table width="100%" border="0" cellpadding="0" cellspacing="0" class="list_table">
                <tr>
                   <th width="5%">#</th>
                   <th width="10%">订单号</th>
                   <th width="15%">产品信息</th>
                   <th width="8%">支付状态</th>
                   <th width="8%">客户</th>
                   <th width="15%">联系电话</th>
                   <th width="15%">下单时间</th>
                   <th width="8%">订单总价</th>
                </tr>
                <foreach name="orderList" item="order">
                <tr class="tr">
                   <td class="td_center">
                   		<input type="checkbox" name="del_checkbox">
                   		<input type="hidden" value="{$order.id}">
                   </td>
                   <td class="td_center"><a href="{:U('Order/orderDetail')}?id={$order.id}">{$order.id}</a></td>
                   <td class="td_center"><a href="{:U('Attraction/editAttr')}?id={$order.product_id}">{$order.product_name}</a></td>
                   <td class="td_center">
                   <if condition="$order.pay_status eq 1">
               			待付款
              		<elseif  condition="$order.pay_status eq 2"/>
              			已付款
            		<elseif  condition="$order.pay_status eq 3"/>
              			已完成
              		<elseif  condition="$order.pay_status eq 4"/>
              			已失效
              		</if>
                   </td>
                   <td class="td_center">{$order.customer_name}</td>
                   <td class="td_center">{$order.phone}</td>
                   <td class="td_center">{$order.order_time}</td>
                   <td class="td_center">{$order.total_price}元</td>
                 </tr>
                 </foreach>
              </table>
        </div>
        <div class="pages"> {$page}</div>
     </div>
     
   </div> 
 </body>
 </html>
  